Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -56,17 +56,12 @@ def predict(message, history):
|
|
| 56 |
partial_message += new_token
|
| 57 |
yield partial_message
|
| 58 |
|
| 59 |
-
# Create the Gradio interface
|
| 60 |
demo = gr.ChatInterface(
|
| 61 |
fn=predict,
|
| 62 |
-
title="🌑 Shadow 0.7B",
|
| 63 |
-
description="Created by **Aman Kumar Pandey** | Focused on Code Logic & Reasoning",
|
| 64 |
-
retry_btn=None,
|
| 65 |
-
undo_btn=None,
|
| 66 |
-
clear_btn="🗑️ Clear Memory",
|
| 67 |
examples=[
|
| 68 |
-
"Write a Python function to check for palindromes.",
|
| 69 |
-
"If I have 3 apples and eat one, how many do I have?"
|
| 70 |
],
|
| 71 |
)
|
| 72 |
|
|
|
|
| 56 |
partial_message += new_token
|
| 57 |
yield partial_message
|
| 58 |
|
| 59 |
+
# Create the Gradio interface - minimal parameters for compatibility
|
| 60 |
demo = gr.ChatInterface(
|
| 61 |
fn=predict,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 62 |
examples=[
|
| 63 |
+
["Write a Python function to check for palindromes."],
|
| 64 |
+
["If I have 3 apples and eat one, how many do I have?"]
|
| 65 |
],
|
| 66 |
)
|
| 67 |
|