Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -7,6 +7,8 @@ api_key = "sk-or-v1-5b41e7106feb9b982d4ef5a6aa0959993387ba2e5fc9830df1279418776e
|
|
7 |
|
8 |
openai_client = OpenAI(base_url="https://openrouter.ai/api/v1",api_key=api_key)
|
9 |
|
|
|
|
|
10 |
prompt_template = """Answer the question only according to the information provided below. Answer only the user's question, dont give additional information.
|
11 |
## Information :
|
12 |
{}
|
@@ -53,4 +55,4 @@ if st.session_state.stage == "prompt-input":
|
|
53 |
model="deepseek/deepseek-r1:free",
|
54 |
messages=[{"role":"user","content":prompt}])
|
55 |
|
56 |
-
|
|
|
7 |
|
8 |
openai_client = OpenAI(base_url="https://openrouter.ai/api/v1",api_key=api_key)
|
9 |
|
10 |
+
output = st.empty()
|
11 |
+
|
12 |
prompt_template = """Answer the question only according to the information provided below. Answer only the user's question, dont give additional information.
|
13 |
## Information :
|
14 |
{}
|
|
|
55 |
model="deepseek/deepseek-r1:free",
|
56 |
messages=[{"role":"user","content":prompt}])
|
57 |
|
58 |
+
output.write((completion.choices[0].message.content))
|