Upload folder using huggingface_hub
Browse files- messages_testcase.py +5 -0
- requirements.txt +2 -2
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",
|
requirements.txt
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
-
gradio-client @ git+https://github.com/gradio-app/gradio@
|
2 |
-
https://gradio-pypi-previews.s3.amazonaws.com/
|
|
|
1 |
+
gradio-client @ git+https://github.com/gradio-app/gradio@58631efdf3e2ff805ce625b7ef63e651f01af03e#subdirectory=client/python
|
2 |
+
https://gradio-pypi-previews.s3.amazonaws.com/58631efdf3e2ff805ce625b7ef63e651f01af03e/gradio-5.34.2-py3-none-any.whl
|