Upload folder using huggingface_hub
Browse files- README.md +1 -1
- messages_testcase.py +5 -0
README.md
CHANGED
|
@@ -5,7 +5,7 @@ emoji: 🔥
|
|
| 5 |
colorFrom: indigo
|
| 6 |
colorTo: indigo
|
| 7 |
sdk: gradio
|
| 8 |
-
sdk_version: 5.
|
| 9 |
app_file: run.py
|
| 10 |
pinned: false
|
| 11 |
hf_oauth: true
|
|
|
|
| 5 |
colorFrom: indigo
|
| 6 |
colorTo: indigo
|
| 7 |
sdk: gradio
|
| 8 |
+
sdk_version: 5.35.0
|
| 9 |
app_file: run.py
|
| 10 |
pinned: false
|
| 11 |
hf_oauth: true
|
messages_testcase.py
CHANGED
|
@@ -53,6 +53,10 @@ def bot(history, response_type):
|
|
| 53 |
html_src(random.choice(["harmful", "neutral", "beneficial"]))
|
| 54 |
)
|
| 55 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
else:
|
| 57 |
msg = {"role": "assistant", "content": "Cool!"}
|
| 58 |
history.append(msg)
|
|
@@ -73,6 +77,7 @@ with gr.Blocks(fill_height=True) as demo:
|
|
| 73 |
"video",
|
| 74 |
"audio",
|
| 75 |
"html",
|
|
|
|
| 76 |
],
|
| 77 |
value="text",
|
| 78 |
label="Response Type",
|
|
|
|
| 53 |
html_src(random.choice(["harmful", "neutral", "beneficial"]))
|
| 54 |
)
|
| 55 |
}
|
| 56 |
+
elif response_type == "model3d":
|
| 57 |
+
msg = {"role": "assistant", "content": gr.Model3D(
|
| 58 |
+
"https://github.com/gradio-app/gradio/raw/main/test/test_files/Fox.gltf"
|
| 59 |
+
)}
|
| 60 |
else:
|
| 61 |
msg = {"role": "assistant", "content": "Cool!"}
|
| 62 |
history.append(msg)
|
|
|
|
| 77 |
"video",
|
| 78 |
"audio",
|
| 79 |
"html",
|
| 80 |
+
"model3d",
|
| 81 |
],
|
| 82 |
value="text",
|
| 83 |
label="Response Type",
|