Nuno-Tome commited on
Commit
34eb043
β€’
1 Parent(s): 61ab821
Files changed (3) hide show
  1. API_demo_client.code-workspace +29 -0
  2. app.py +8 -0
  3. requirements.txt +1 -0
API_demo_client.code-workspace ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "folders": [
3
+ {
4
+ "path": "."
5
+ }
6
+ ],
7
+ "settings": {
8
+ "workbench.colorCustomizations": {
9
+ "activityBar.activeBackground": "#f8ef72",
10
+ "activityBar.background": "#f8ef72",
11
+ "activityBar.foreground": "#15202b",
12
+ "activityBar.inactiveForeground": "#15202b99",
13
+ "activityBarBadge.background": "#09b6ab",
14
+ "activityBarBadge.foreground": "#15202b",
15
+ "commandCenter.border": "#15202b99",
16
+ "sash.hoverBorder": "#f8ef72",
17
+ "statusBar.background": "#f5e942",
18
+ "statusBar.foreground": "#15202b",
19
+ "statusBarItem.hoverBackground": "#f2e312",
20
+ "statusBarItem.remoteBackground": "#f5e942",
21
+ "statusBarItem.remoteForeground": "#15202b",
22
+ "titleBar.activeBackground": "#f5e942",
23
+ "titleBar.activeForeground": "#15202b",
24
+ "titleBar.inactiveBackground": "#f5e94299",
25
+ "titleBar.inactiveForeground": "#15202b99"
26
+ },
27
+ "peacock.color": "#f5e942"
28
+ }
29
+ }
app.py ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ from gradio_client import Client
2
+
3
+ client = Client("Nuno-Tome/API_demo_server")
4
+ result = client.predict(
5
+ "Hello!!", # str in 'text' Textbox component
6
+ api_name="/predict"
7
+ )
8
+ print(result)
requirements.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ gradio_client