aibmedia commited on
Commit
d8edfd0
·
verified ·
1 Parent(s): 45a1359

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +10 -8
main.py CHANGED
@@ -1,5 +1,5 @@
1
  import os
2
- from flask import Flask
3
  import threading
4
  import asyncio
5
 
@@ -32,13 +32,15 @@ def server_app():
32
  return 'llamafile.start()'
33
 
34
  @app.route('/')
35
- def server_home():
36
-
37
- output = asyncio.run( query({
38
- "inputs": { "source_sentence": "That is a happy person", "sentences": ["That is a happy dog","That is a very happy person", "Today is a sunny day"] },}))
39
-
40
- return str(output)
41
-
 
 
42
  # @app.route('/chat', methods=['POST'])
43
  # def chat():
44
  # try:
 
1
  import os
2
+ from flask import Flask, render_template
3
  import threading
4
  import asyncio
5
 
 
32
  return 'llamafile.start()'
33
 
34
  @app.route('/')
35
+ def server_one():
36
+ context = {
37
+ "source": "Results",
38
+ "s1": "Results",
39
+ "s2": "Results",
40
+ "s3": "Results",
41
+ }
42
+ return render_template("similarity_1.html", **context)
43
+
44
  # @app.route('/chat', methods=['POST'])
45
  # def chat():
46
  # try: