Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -48,7 +48,7 @@ YOUR_WORK_HTML = """
|
|
| 48 |
# ---- Hugging Face reference content ----
|
| 49 |
HF_REFERENCE_HTML = """
|
| 50 |
<div id="hf-content" style="max-width: 800px; margin: auto; font-size: 16px; line-height: 1.6;">
|
| 51 |
-
<img src="HFImage.png" style="width:100%; border-radius:8px; margin-bottom:20px;" />
|
| 52 |
<h1>Text Generation (Hugging Face Reference)</h1>
|
| 53 |
<h1>About Text Generation</h1>
|
| 54 |
<p>
|
|
@@ -202,12 +202,12 @@ document.addEventListener("mouseup", () => {
|
|
| 202 |
gr.Markdown("### 📘 Highlight text and ask GPT for help")
|
| 203 |
|
| 204 |
# Toggle between your work and HF reference
|
| 205 |
-
view_toggle = gr.Radio(
|
| 206 |
-
|
| 207 |
-
|
| 208 |
-
|
| 209 |
-
|
| 210 |
-
)
|
| 211 |
|
| 212 |
content_display = gr.HTML(HF_REFERENCE_HTML)
|
| 213 |
|
|
|
|
| 48 |
# ---- Hugging Face reference content ----
|
| 49 |
HF_REFERENCE_HTML = """
|
| 50 |
<div id="hf-content" style="max-width: 800px; margin: auto; font-size: 16px; line-height: 1.6;">
|
| 51 |
+
<img src="./HFImage.png" style="width:100%; border-radius:8px; margin-bottom:20px;" />
|
| 52 |
<h1>Text Generation (Hugging Face Reference)</h1>
|
| 53 |
<h1>About Text Generation</h1>
|
| 54 |
<p>
|
|
|
|
| 202 |
gr.Markdown("### 📘 Highlight text and ask GPT for help")
|
| 203 |
|
| 204 |
# Toggle between your work and HF reference
|
| 205 |
+
#view_toggle = gr.Radio(
|
| 206 |
+
# choices=["My Work", "HF Reference"],
|
| 207 |
+
# value="My Work",
|
| 208 |
+
# label="View",
|
| 209 |
+
# interactive=True
|
| 210 |
+
#)
|
| 211 |
|
| 212 |
content_display = gr.HTML(HF_REFERENCE_HTML)
|
| 213 |
|