Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -74,8 +74,17 @@ def chat_fn(message, history, system_text, temperature, top_p, max_new, min_new)
|
|
| 74 |
return reply
|
| 75 |
|
| 76 |
@spaces.GPU()
|
| 77 |
-
def gradio_fn(message, history
|
| 78 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 79 |
|
| 80 |
with gr.Blocks(css="""
|
| 81 |
.gradio-container {
|
|
@@ -135,4 +144,3 @@ with gr.Blocks(css="""
|
|
| 135 |
|
| 136 |
if __name__ == "__main__":
|
| 137 |
demo.launch()
|
| 138 |
-
|
|
|
|
| 74 |
return reply
|
| 75 |
|
| 76 |
@spaces.GPU()
|
| 77 |
+
def gradio_fn(message, history):
|
| 78 |
+
# Minimal fix: call the defined chat_fn with sensible defaults
|
| 79 |
+
return chat_fn(
|
| 80 |
+
message=message,
|
| 81 |
+
history=history,
|
| 82 |
+
system_text="",
|
| 83 |
+
temperature=0.7,
|
| 84 |
+
top_p=0.95,
|
| 85 |
+
max_new=512,
|
| 86 |
+
min_new=0,
|
| 87 |
+
)
|
| 88 |
|
| 89 |
with gr.Blocks(css="""
|
| 90 |
.gradio-container {
|
|
|
|
| 144 |
|
| 145 |
if __name__ == "__main__":
|
| 146 |
demo.launch()
|
|
|