Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
import gradio as gr
|
|
|
2 |
import numpy as np
|
3 |
from huggingface_hub import InferenceClient
|
4 |
import random
|
@@ -392,6 +393,7 @@ ae= gr.ChatInterface(
|
|
392 |
)
|
393 |
aa=gr.ChatInterface(
|
394 |
respond1,
|
|
|
395 |
additional_inputs=[
|
396 |
gr.Textbox(value="You are a helpful assistant.", label="System message", interactive=True),
|
397 |
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|
|
|
1 |
import gradio as gr
|
2 |
+
from Ai import chatbot
|
3 |
import numpy as np
|
4 |
from huggingface_hub import InferenceClient
|
5 |
import random
|
|
|
393 |
)
|
394 |
aa=gr.ChatInterface(
|
395 |
respond1,
|
396 |
+
chatbot=chatbot,
|
397 |
additional_inputs=[
|
398 |
gr.Textbox(value="You are a helpful assistant.", label="System message", interactive=True),
|
399 |
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|