Manasa1 commited on
Commit
af00036
·
verified ·
1 Parent(s): 6e874c3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -1,9 +1,7 @@
1
- import streamlit as st
2
 
3
- st.title("D-ID Agent")
4
-
5
- st.markdown(
6
- """
7
  <script
8
  type="module"
9
  src="https://agent.d-id.com/v1/index.js"
@@ -13,6 +11,8 @@ st.markdown(
13
  data-agent-id="agt_yGKAc5pK"
14
  data-monitor="true">
15
  </script>
16
- """,
17
- unsafe_allow_html=True
18
- )
 
 
 
1
+ import gradio as gr
2
 
3
+ def embed_did_agent():
4
+ return """
 
 
5
  <script
6
  type="module"
7
  src="https://agent.d-id.com/v1/index.js"
 
11
  data-agent-id="agt_yGKAc5pK"
12
  data-monitor="true">
13
  </script>
14
+ """
15
+
16
+ iface = gr.Interface(fn=embed_did_agent, outputs="html")
17
+ iface.launch()
18
+