Update app.py
Browse files
app.py
CHANGED
|
@@ -174,9 +174,13 @@ def analyze_pdf_novelty(patent_background, url, data_type="pdf"):
|
|
| 174 |
except Exception as e:
|
| 175 |
return {"error": f"Error: {str(e)}"}
|
| 176 |
|
| 177 |
-
@app.route('/')
|
| 178 |
-
def home():
|
| 179 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 180 |
|
| 181 |
@app.route('/chat', methods=['POST'])
|
| 182 |
def chat():
|
|
|
|
| 174 |
except Exception as e:
|
| 175 |
return {"error": f"Error: {str(e)}"}
|
| 176 |
|
| 177 |
+
# @app.route('/')
|
| 178 |
+
# def home():
|
| 179 |
+
# return render_template('index.html')
|
| 180 |
+
|
| 181 |
+
@app.get("/")
|
| 182 |
+
def timeline():
|
| 183 |
+
return stream_template("index.html")
|
| 184 |
|
| 185 |
@app.route('/chat', methods=['POST'])
|
| 186 |
def chat():
|