rrg92 commited on
Commit
828a901
·
1 Parent(s): 6d1f5fd
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -5,10 +5,10 @@ def GetFile():
5
  return "https://huggingface.co/spaces/rrg92/GradioApiBug/raw/main/SampleFile.txt"
6
 
7
 
8
- with gr.Blocks():
9
  gr.Markdown("This space shows a problem with Gradio API when used inside Hugging Face Space.")
10
  gr.Markdown("You can you any favorite http client to reproduce that. Use sample code bellow as reference")
11
- gr.markdown("*Problem*: File url returned by Gradio API is incorrect")
12
 
13
  btn = gr.Button("Click that button to start!")
14
  fileResult = gr.File()
 
5
  return "https://huggingface.co/spaces/rrg92/GradioApiBug/raw/main/SampleFile.txt"
6
 
7
 
8
+ with gr.Blocks() as demo:
9
  gr.Markdown("This space shows a problem with Gradio API when used inside Hugging Face Space.")
10
  gr.Markdown("You can you any favorite http client to reproduce that. Use sample code bellow as reference")
11
+ gr.Markdown("*Problem*: File url returned by Gradio API is incorrect")
12
 
13
  btn = gr.Button("Click that button to start!")
14
  fileResult = gr.File()