Juna190825 commited on
Commit
44fddb5
·
verified ·
1 Parent(s): 8986569

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -1
app.py CHANGED
@@ -1,7 +1,19 @@
1
  import gradio as gr
2
 
 
 
 
3
  def chat(message):
4
- return f"You said: {message}"
 
 
 
 
 
 
 
 
 
5
 
6
  # This exposes the /chat API endpoint
7
  chat_api = gr.Interface(
 
1
  import gradio as gr
2
 
3
+ from gradio_client import Client
4
+
5
+
6
  def chat(message):
7
+ # return f"You said: {message}"
8
+ msg = f"Translate Zomi to English: '{message}'"
9
+ client = Client("Chatboong/Gemini_Translator") # working as of 20251125,
10
+ result = client.predict(
11
+ message=msg,
12
+ lang="English",
13
+ is_streaming=True,
14
+ api_name="/chat"
15
+ )
16
+ return result
17
 
18
  # This exposes the /chat API endpoint
19
  chat_api = gr.Interface(