Spaces:
Build error
Build error
change fn output
Browse files
app.py
CHANGED
|
@@ -1,7 +1,6 @@
|
|
| 1 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 2 |
import torch
|
| 3 |
import gradio as gr
|
| 4 |
-
import gradio as gr
|
| 5 |
|
| 6 |
|
| 7 |
def chat(message, history):
|
|
@@ -15,7 +14,7 @@ def chat(message, history):
|
|
| 15 |
else:
|
| 16 |
response = "I don't know"
|
| 17 |
history.append((message, response))
|
| 18 |
-
return history
|
| 19 |
|
| 20 |
chatbot = gr.Chatbot(color_map=("green", "gray"))
|
| 21 |
demo = gr.Interface(
|
|
|
|
| 1 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 2 |
import torch
|
| 3 |
import gradio as gr
|
|
|
|
| 4 |
|
| 5 |
|
| 6 |
def chat(message, history):
|
|
|
|
| 14 |
else:
|
| 15 |
response = "I don't know"
|
| 16 |
history.append((message, response))
|
| 17 |
+
return history
|
| 18 |
|
| 19 |
chatbot = gr.Chatbot(color_map=("green", "gray"))
|
| 20 |
demo = gr.Interface(
|