Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,18 @@
|
|
1 |
import random
|
2 |
import gradio as gr
|
|
|
3 |
|
4 |
def random_response(message, history):
|
5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
|
7 |
demo = gr.ChatInterface(random_response, type="messages", autofocus=False, save_history=True, show_progress="full")
|
8 |
|
|
|
1 |
import random
|
2 |
import gradio as gr
|
3 |
+
from gradio_client import Client
|
4 |
|
5 |
def random_response(message, history):
|
6 |
+
|
7 |
+
client = Client("TejAndrewsACC/Z3taACC-Plus")
|
8 |
+
result = client.predict(
|
9 |
+
message="messages",
|
10 |
+
max_tokens=2048,
|
11 |
+
temperature=0.7,
|
12 |
+
top_p=0.95,
|
13 |
+
api_name="/chat"
|
14 |
+
)
|
15 |
+
print(result)
|
16 |
|
17 |
demo = gr.ChatInterface(random_response, type="messages", autofocus=False, save_history=True, show_progress="full")
|
18 |
|