Haofei Yu
commited on
Feature/check running (#12)
Browse files* support pre-commit
* support running
* change param
- .gitignore +1 -0
- app.py +7 -9
- ctm +1 -0
- images/CTM-AI.png +0 -0
.gitignore
CHANGED
@@ -158,3 +158,4 @@ cython_debug/
|
|
158 |
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
159 |
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
160 |
#.idea/
|
|
|
|
158 |
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
159 |
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
160 |
#.idea/
|
161 |
+
**/ctm/*
|
app.py
CHANGED
@@ -15,7 +15,7 @@ DEPLOYED = os.getenv("DEPLOYED", "true").lower() == "true"
|
|
15 |
def introduction():
|
16 |
with gr.Column(scale=2):
|
17 |
gr.Image(
|
18 |
-
"images/
|
19 |
)
|
20 |
with gr.Column(scale=5):
|
21 |
gr.Markdown(
|
@@ -115,11 +115,11 @@ def forward(query, content, image, state):
|
|
115 |
def ask_processors(query, content, image, state):
|
116 |
# Simulate processing here
|
117 |
processor_output = ctm.ask_processors(
|
118 |
-
|
119 |
-
|
120 |
-
image_path=None,
|
121 |
-
audio_path=None,
|
122 |
-
video_path=None,
|
123 |
)
|
124 |
output_info = ""
|
125 |
for name, info in processor_output.items():
|
@@ -150,7 +150,7 @@ def ask_supervisor(state):
|
|
150 |
|
151 |
|
152 |
def interface_tab():
|
153 |
-
with gr.Blocks()
|
154 |
state = gr.State({}) # State to hold and pass values
|
155 |
|
156 |
with gr.Column():
|
@@ -186,7 +186,6 @@ def interface_tab():
|
|
186 |
state,
|
187 |
],
|
188 |
)
|
189 |
-
|
190 |
return interface_tab
|
191 |
|
192 |
|
@@ -204,7 +203,6 @@ def main():
|
|
204 |
processor_tab()
|
205 |
with gr.Row():
|
206 |
interface_tab()
|
207 |
-
|
208 |
return demo
|
209 |
|
210 |
|
|
|
15 |
def introduction():
|
16 |
with gr.Column(scale=2):
|
17 |
gr.Image(
|
18 |
+
"images/CTM-AI.png", elem_id="banner-image", show_label=False
|
19 |
)
|
20 |
with gr.Column(scale=5):
|
21 |
gr.Markdown(
|
|
|
115 |
def ask_processors(query, content, image, state):
|
116 |
# Simulate processing here
|
117 |
processor_output = ctm.ask_processors(
|
118 |
+
query=query,
|
119 |
+
text=content,
|
120 |
+
#image_path=None,
|
121 |
+
#audio_path=None,
|
122 |
+
#video_path=None,
|
123 |
)
|
124 |
output_info = ""
|
125 |
for name, info in processor_output.items():
|
|
|
150 |
|
151 |
|
152 |
def interface_tab():
|
153 |
+
with gr.Blocks():
|
154 |
state = gr.State({}) # State to hold and pass values
|
155 |
|
156 |
with gr.Column():
|
|
|
186 |
state,
|
187 |
],
|
188 |
)
|
|
|
189 |
return interface_tab
|
190 |
|
191 |
|
|
|
203 |
processor_tab()
|
204 |
with gr.Row():
|
205 |
interface_tab()
|
|
|
206 |
return demo
|
207 |
|
208 |
|
ctm
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
/Users/yuhaofei/github_repo/CTM-AI/ctm/
|
images/CTM-AI.png
ADDED