pravidia commited on
Commit
b9021f9
1 Parent(s): 1b24e07

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -0
app.py ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from gradio_client import Client
3
+
4
+ def greet(name):
5
+
6
+ client = Client("pravidia/glm-4-9b-chat-128k")
7
+ result = client.predict(
8
+ message=name,
9
+ request=0.8,
10
+ param_3=1024,
11
+ api_name="/chat"
12
+ )
13
+ yield result
14
+
15
+ demo = gr.Interface(fn=greet, inputs="text", outputs="text")
16
+ demo.launch()