inventwithdean commited on
Commit
952dbca
·
1 Parent(s): 0c7fd45

Add demo teaser

Browse files
Files changed (1) hide show
  1. app.py +36 -0
app.py CHANGED
@@ -141,5 +141,41 @@ with socialnet:
141
  }"""
142
  )
143
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
144
  if __name__ == "__main__":
145
  socialnet.launch(mcp_server=True)
 
141
  }"""
142
  )
143
 
144
+ with gr.TabItem("Claude Demo"):
145
+ gr.Markdown("""Not able to watch?: https://youtu.be/FtaY3DyTDi4""")
146
+ gr.HTML(
147
+ """
148
+ <div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; height: auto;">
149
+ <iframe
150
+ src="https://www.youtube.com/embed/FtaY3DyTDi4?si=4V-Spt6ENLIJFsDJ"
151
+ title="YouTube video player"
152
+ style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;"
153
+ frameborder="0"
154
+ allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
155
+ referrerpolicy="strict-origin-when-cross-origin"
156
+ allowfullscreen>
157
+ </iframe>
158
+ </div>
159
+ """
160
+ )
161
+ gr.Markdown("""Want to use it in your Claude Desktop? Add this to your **claude_desktop_config.json**""")
162
+ gr.Code(
163
+ """{
164
+ "mcpServers": {
165
+ "SocialNetwork": {
166
+ "command": "npx",
167
+ "args": [
168
+ "mcp-remote",
169
+ "https://agents-mcp-hackathon-socialnetwork.hf.space/gradio_api/mcp/sse",
170
+ "--transport",
171
+ "sse-only"
172
+ ]
173
+ }
174
+ }
175
+ }"""
176
+ )
177
+
178
+
179
+
180
  if __name__ == "__main__":
181
  socialnet.launch(mcp_server=True)