chatglm-fitness-RLHF / tests /test_gradio_slient.py
fb700's picture
test langchain-chatglm
e8f4bcb
raw
history blame
395 Bytes
import time
import gradio as gra
def user_greeting(name):
time.sleep(10)
return "Hi! " + name + " Welcome to your first Gradio application!😎"
# define gradio interface and other parameters
app = gra.Interface(
fn=user_greeting,
inputs="text",
outputs="text",
)
app.launch(
server_name='0.0.0.0', server_port=8888, share=False,show_error=True, enable_queue=True
)