TejAndrewsACC commited on
Commit
7e8e8de
·
verified ·
1 Parent(s): 5f188d3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -1
app.py CHANGED
@@ -1,8 +1,18 @@
1
  import random
2
  import gradio as gr
 
3
 
4
  def random_response(message, history):
5
- return random.choice(["Yes", "No"])
 
 
 
 
 
 
 
 
 
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