Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,7 +18,7 @@ def runpod_chat(question, history):
|
|
| 18 |
model="ambrosfitz/llama-3-history",
|
| 19 |
messages=history,
|
| 20 |
temperature=0,
|
| 21 |
-
max_tokens=
|
| 22 |
stream=True,
|
| 23 |
)
|
| 24 |
|
|
@@ -35,8 +35,8 @@ def runpod_chat(question, history):
|
|
| 35 |
iface = gr.Interface(
|
| 36 |
fn=runpod_chat,
|
| 37 |
inputs=[
|
| 38 |
-
gr.
|
| 39 |
-
gr.
|
| 40 |
],
|
| 41 |
outputs="chat",
|
| 42 |
title="RunPod Chat",
|
|
|
|
| 18 |
model="ambrosfitz/llama-3-history",
|
| 19 |
messages=history,
|
| 20 |
temperature=0,
|
| 21 |
+
max_tokens=150,
|
| 22 |
stream=True,
|
| 23 |
)
|
| 24 |
|
|
|
|
| 35 |
iface = gr.Interface(
|
| 36 |
fn=runpod_chat,
|
| 37 |
inputs=[
|
| 38 |
+
gr.Textbox(label="Enter your question:"),
|
| 39 |
+
gr.State(label="History")
|
| 40 |
],
|
| 41 |
outputs="chat",
|
| 42 |
title="RunPod Chat",
|