Update app.py
Browse files
app.py
CHANGED
|
@@ -11,9 +11,9 @@ from google.genai import types
|
|
| 11 |
def main(args):
|
| 12 |
style_css = open(args.css_path, "r").read()
|
| 13 |
|
| 14 |
-
global client, prompt_tmpl, system_instruction
|
| 15 |
-
client = None#setup_gemini_client(args)
|
| 16 |
-
prompt_tmpl = load_prompt(args)
|
| 17 |
|
| 18 |
## Gradio Blocks
|
| 19 |
with gr.Blocks(css=style_css) as demo:
|
|
@@ -33,6 +33,6 @@ def main(args):
|
|
| 33 |
return demo
|
| 34 |
|
| 35 |
if __name__ == "__main__":
|
| 36 |
-
args = parse_args()
|
| 37 |
-
demo = main(
|
| 38 |
demo.launch()
|
|
|
|
| 11 |
def main(args):
|
| 12 |
style_css = open(args.css_path, "r").read()
|
| 13 |
|
| 14 |
+
# global client, prompt_tmpl, system_instruction
|
| 15 |
+
# client = None#setup_gemini_client(args)
|
| 16 |
+
# prompt_tmpl = load_prompt(args)
|
| 17 |
|
| 18 |
## Gradio Blocks
|
| 19 |
with gr.Blocks(css=style_css) as demo:
|
|
|
|
| 33 |
return demo
|
| 34 |
|
| 35 |
if __name__ == "__main__":
|
| 36 |
+
# args = parse_args()
|
| 37 |
+
demo = main(None)
|
| 38 |
demo.launch()
|