Spaces:
Runtime error
Runtime error
Commit
·
8845b69
1
Parent(s):
f8d860d
Update main.py
Browse files
main.py
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
#import uvicorn
|
|
|
|
| 2 |
from flask import Flask, request, jsonify
|
| 3 |
from langchain import PromptTemplate, LLMChain
|
| 4 |
from langchain.memory import StreamlitChatMessageHistory
|
|
@@ -57,7 +58,7 @@ async def chat():
|
|
| 57 |
initial_response = llm_chain.run(user_query)
|
| 58 |
return jsonify({'response': initial_response})
|
| 59 |
|
| 60 |
-
if __name__ == "__main__":
|
| 61 |
# uvicorn.run(app, host='0.0.0.0', port=5000)
|
| 62 |
#app.run(host='0.0.0.0')
|
| 63 |
-
app.run(host='0.0.0.0', port=10000)
|
|
|
|
| 1 |
#import uvicorn
|
| 2 |
+
import streamlit as st
|
| 3 |
from flask import Flask, request, jsonify
|
| 4 |
from langchain import PromptTemplate, LLMChain
|
| 5 |
from langchain.memory import StreamlitChatMessageHistory
|
|
|
|
| 58 |
initial_response = llm_chain.run(user_query)
|
| 59 |
return jsonify({'response': initial_response})
|
| 60 |
|
| 61 |
+
#if __name__ == "__main__":
|
| 62 |
# uvicorn.run(app, host='0.0.0.0', port=5000)
|
| 63 |
#app.run(host='0.0.0.0')
|
| 64 |
+
#app.run(host='0.0.0.0', port=10000)
|