Spaces:
Running
Running
examples to show as a state
Browse files
app.py
CHANGED
@@ -199,7 +199,6 @@ URL_EXAMPLES = [
|
|
199 |
"https://lite.cnn.com/2024/05/13/tech/openai-altman-new-ai-model-gpt-4o/index.html",
|
200 |
]
|
201 |
|
202 |
-
examples_to_show = random.sample(URL_EXAMPLES, 5)
|
203 |
|
204 |
with open("README.md", "r") as fin:
|
205 |
info_md = (
|
@@ -214,6 +213,8 @@ with gr.Blocks(
|
|
214 |
) as demo:
|
215 |
gr.Markdown(HEADER)
|
216 |
quiz = gr.State({})
|
|
|
|
|
217 |
with gr.Tabs() as tabs:
|
218 |
with gr.TabItem("Generate quiz and play"):
|
219 |
with gr.Row():
|
|
|
199 |
"https://lite.cnn.com/2024/05/13/tech/openai-altman-new-ai-model-gpt-4o/index.html",
|
200 |
]
|
201 |
|
|
|
202 |
|
203 |
with open("README.md", "r") as fin:
|
204 |
info_md = (
|
|
|
213 |
) as demo:
|
214 |
gr.Markdown(HEADER)
|
215 |
quiz = gr.State({})
|
216 |
+
examples_to_show = gr.State(random.sample(URL_EXAMPLES, 5))
|
217 |
+
|
218 |
with gr.Tabs() as tabs:
|
219 |
with gr.TabItem("Generate quiz and play"):
|
220 |
with gr.Row():
|