zubairsamo commited on
Commit
4f51b52
1 Parent(s): 1a23d4f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -8
app.py CHANGED
@@ -51,19 +51,14 @@ def reset_textbox():
51
  with gr.Blocks() as demo:
52
  duplicate_link = "https://huggingface.co/spaces/joaogante/transformers_streaming?duplicate=true"
53
  gr.Markdown(
54
- "# 🤗 Transformers 🔥Streaming🔥 on Gradio\n"
55
- "This demo showcases the use of the "
56
- "[streaming feature](https://huggingface.co/docs/transformers/main/en/generation_strategies#streaming) "
57
- "of 🤗 Transformers with Gradio to generate text in real-time. It uses "
58
- f"[{model_id}](https://huggingface.co/{model_id}) and the Spaces free compute tier.\n\n"
59
- f"Feel free to [duplicate this Space]({duplicate_link}) to try your own models or use this space as a "
60
- "template! 💛"
61
  )
62
 
63
  with gr.Row():
64
  with gr.Column(scale=4):
65
  user_text = gr.Textbox(
66
- placeholder="Write an email about an alpaca that likes flan",
67
  label="User input"
68
  )
69
  model_output = gr.Textbox(label="Model output", lines=10, interactive=False)
 
51
  with gr.Blocks() as demo:
52
  duplicate_link = "https://huggingface.co/spaces/joaogante/transformers_streaming?duplicate=true"
53
  gr.Markdown(
54
+ "# Testing ALPACA 🤗 Transformers 🔥Streaming🔥 on Gradio\n"
55
+ "💛"
 
 
 
 
 
56
  )
57
 
58
  with gr.Row():
59
  with gr.Column(scale=4):
60
  user_text = gr.Textbox(
61
+ placeholder="Ask Me Anything ... ",
62
  label="User input"
63
  )
64
  model_output = gr.Textbox(label="Model output", lines=10, interactive=False)