Spaces:
Sleeping
Sleeping
call interface
Browse files- app.py +23 -0
- src/__init__.py +0 -0
- 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")
|