Spaces:
Sleeping
Sleeping
fix2
Browse files
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.
|
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()
|