Spaces:
Running
on
T4
Running
on
T4
ffreemt
commited on
Commit
·
66acbac
1
Parent(s):
c48ba74
Update pundkey='#' {poundkey} in info
Browse files
app.py
CHANGED
@@ -292,6 +292,7 @@ with gr.Blocks(
|
|
292 |
yield from bot_stream(chat_history, **config)
|
293 |
|
294 |
with gr.Accordion("🎈 Info", open=False):
|
|
|
295 |
gr.Markdown(
|
296 |
dedent(
|
297 |
f"""
|
@@ -312,16 +313,17 @@ with gr.Blocks(
|
|
312 |
```python
|
313 |
from gradio_client import Client
|
314 |
|
315 |
-
client = Client("https://
|
|
|
316 |
result = client.predict(
|
317 |
-
"你好!",
|
318 |
-
256,
|
319 |
-
|
320 |
-
1.1,
|
321 |
-
0,
|
322 |
-
0.9,
|
323 |
-
"You are a help assistant",
|
324 |
-
None,
|
325 |
api_name="/api"
|
326 |
)
|
327 |
print(result)
|
|
|
292 |
yield from bot_stream(chat_history, **config)
|
293 |
|
294 |
with gr.Accordion("🎈 Info", open=False):
|
295 |
+
poundkey = "#"
|
296 |
gr.Markdown(
|
297 |
dedent(
|
298 |
f"""
|
|
|
313 |
```python
|
314 |
from gradio_client import Client
|
315 |
|
316 |
+
client = Client("https://mikeee-qwen-7b-chat.hf.space/")
|
317 |
+
|
318 |
result = client.predict(
|
319 |
+
"你好!", {poundkey} user prompt
|
320 |
+
256, {poundkey} max_new_tokens
|
321 |
+
1.2, {poundkey} temperature
|
322 |
+
1.1, {poundkey} repetition_penalty
|
323 |
+
0, {poundkey} top_k
|
324 |
+
0.9, {poundkey} top_p
|
325 |
+
"You are a help assistant", {poundkey} system_prompt
|
326 |
+
None, {poundkey} history
|
327 |
api_name="/api"
|
328 |
)
|
329 |
print(result)
|