Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,6 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from gradio_client import Client
|
| 3 |
|
| 4 |
-
client = Client("https://ysharma-explore-llamav2-with-tgi.hf.space/")
|
| 5 |
|
| 6 |
|
| 7 |
|
|
@@ -21,6 +20,8 @@ examples=[
|
|
| 21 |
|
| 22 |
# Stream text
|
| 23 |
def predict(message, chatbot, system_prompt="", temperature=0.9, max_new_tokens=4096):
|
|
|
|
|
|
|
| 24 |
return client.predict(
|
| 25 |
message, # str in 'Message' Textbox component
|
| 26 |
system_prompt, # str in 'Optional system prompt' Textbox component
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from gradio_client import Client
|
| 3 |
|
|
|
|
| 4 |
|
| 5 |
|
| 6 |
|
|
|
|
| 20 |
|
| 21 |
# Stream text
|
| 22 |
def predict(message, chatbot, system_prompt="", temperature=0.9, max_new_tokens=4096):
|
| 23 |
+
|
| 24 |
+
client = Client("https://ysharma-explore-llamav2-with-tgi.hf.space/")
|
| 25 |
return client.predict(
|
| 26 |
message, # str in 'Message' Textbox component
|
| 27 |
system_prompt, # str in 'Optional system prompt' Textbox component
|