Xmaster6y commited on
Commit
d2ad521
1 Parent(s): c1d30b2

call interface

Browse files
Files changed (3) hide show
  1. app.py +23 -0
  2. src/__init__.py +0 -0
  3. src/call_interface.py +7 -0
app.py ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ Main Gradio module.
3
+ """
4
+
5
+ import gradio as gr
6
+
7
+ from src import (
8
+ call_interface,
9
+ )
10
+
11
+
12
+ demo = gr.TabbedInterface(
13
+ [
14
+ call_interface.interface,
15
+ ],
16
+ [
17
+ "Call",
18
+ ],
19
+ title="GPT-2 Stockfish Debug",
20
+ analytics_enabled=False,
21
+ )
22
+
23
+ demo.launch()
src/__init__.py ADDED
File without changes
src/call_interface.py ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ """Call the inference API of HF.
2
+ """
3
+
4
+ import gradio as gr
5
+
6
+
7
+ interface = gr.load("yp-edu/gpt2-stockfish-debug", src="models")