freddyaboulton HF Staff commited on
Commit
21aa425
·
verified ·
1 Parent(s): f368ec2

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. messages_testcase.py +5 -0
  2. 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@5e8f435aaddcf6409e2fe12f7ffdfd6a8b5c1872#subdirectory=client/python
2
- https://gradio-pypi-previews.s3.amazonaws.com/5e8f435aaddcf6409e2fe12f7ffdfd6a8b5c1872/gradio-5.34.2-py3-none-any.whl
 
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