Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -10,8 +10,7 @@ import gradio as gr
|
|
10 |
|
11 |
def get_content(filepath: str) -> str:
|
12 |
url = string.Template(
|
13 |
-
"https://raw.githubusercontent.com/huggingface/"
|
14 |
-
"huggingface_hub/main/docs/source/en/$filepath"
|
15 |
).safe_substitute(filepath=filepath)
|
16 |
response = requests.get(url)
|
17 |
if response.status_code == 200:
|
@@ -165,7 +164,7 @@ with demo:
|
|
165 |
)
|
166 |
filepath_input = gr.Textbox(
|
167 |
value="tasks/masked_language_modeling.md",
|
168 |
-
label="File path of
|
169 |
)
|
170 |
with gr.Tabs():
|
171 |
with gr.TabItem("Web UI"):
|
|
|
10 |
|
11 |
def get_content(filepath: str) -> str:
|
12 |
url = string.Template(
|
13 |
+
"https://raw.githubusercontent.com/huggingface/huggingface_hub/main/docs/source/en/$filepath"
|
|
|
14 |
).safe_substitute(filepath=filepath)
|
15 |
response = requests.get(url)
|
16 |
if response.status_code == 200:
|
|
|
164 |
)
|
165 |
filepath_input = gr.Textbox(
|
166 |
value="tasks/masked_language_modeling.md",
|
167 |
+
label="File path of huggingface_hub document"
|
168 |
)
|
169 |
with gr.Tabs():
|
170 |
with gr.TabItem("Web UI"):
|