Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,7 @@
|
|
1 |
-
import
|
2 |
|
3 |
-
|
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 |
-
|
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 |
+
|