Spaces:
Build error
Build error
fix for label showing issues
Browse files
utils.py
CHANGED
|
@@ -182,7 +182,11 @@ def fake_last_response(
|
|
| 182 |
vote_last_response(
|
| 183 |
state, "fake", request
|
| 184 |
)
|
| 185 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 186 |
|
| 187 |
def real_last_response(
|
| 188 |
state, request: gr.Request
|
|
@@ -190,5 +194,10 @@ def real_last_response(
|
|
| 190 |
vote_last_response(
|
| 191 |
state, "real", request
|
| 192 |
)
|
| 193 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 194 |
|
|
|
|
| 182 |
vote_last_response(
|
| 183 |
state, "fake", request
|
| 184 |
)
|
| 185 |
+
markdown_text = f"### {state.row.label}"
|
| 186 |
+
if state.row.label != 'real':
|
| 187 |
+
markdown_text += f"\nModel : {state.row.algorithm}"
|
| 188 |
+
|
| 189 |
+
return (disable_btn,) * 2 + (gr.Markdown(markdown_text, visible=True),)
|
| 190 |
|
| 191 |
def real_last_response(
|
| 192 |
state, request: gr.Request
|
|
|
|
| 194 |
vote_last_response(
|
| 195 |
state, "real", request
|
| 196 |
)
|
| 197 |
+
|
| 198 |
+
markdown_text = f"### {state.row.label}"
|
| 199 |
+
if state.row.label != 'real':
|
| 200 |
+
markdown_text += f"\nModel : {state.row.algorithm}"
|
| 201 |
+
|
| 202 |
+
return (disable_btn,) * 2 + (gr.Markdown(markdown_text, visible=True),)
|
| 203 |
|