Update lexoid version
Browse files- app.py +18 -0
- requirements.txt +1 -1
app.py
CHANGED
@@ -28,6 +28,9 @@ def run_parser(
|
|
28 |
huggingfacehub_api_token,
|
29 |
together_api_key,
|
30 |
openrouter_api_key,
|
|
|
|
|
|
|
31 |
):
|
32 |
# Set environment variables
|
33 |
os.environ["GOOGLE_API_KEY"] = google_api_key
|
@@ -35,6 +38,9 @@ def run_parser(
|
|
35 |
os.environ["HUGGINGFACEHUB_API_TOKEN"] = huggingfacehub_api_token
|
36 |
os.environ["TOGETHER_API_KEY"] = together_api_key
|
37 |
os.environ["OPENROUTER_API_KEY"] = openrouter_api_key
|
|
|
|
|
|
|
38 |
|
39 |
if file is None:
|
40 |
return "Please upload a file to parse."
|
@@ -132,6 +138,15 @@ with gr.Blocks(title="Lexoid Document Parser") as app:
|
|
132 |
openrouter_api_key = gr.Textbox(
|
133 |
label="OpenRouter API Key", placeholder="Enter OpenRouter API Key"
|
134 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
135 |
|
136 |
output = gr.Markdown(label="Parsed Output")
|
137 |
|
@@ -158,6 +173,9 @@ with gr.Blocks(title="Lexoid Document Parser") as app:
|
|
158 |
huggingfacehub_api_token,
|
159 |
together_api_key,
|
160 |
openrouter_api_key,
|
|
|
|
|
|
|
161 |
],
|
162 |
outputs=output,
|
163 |
)
|
|
|
28 |
huggingfacehub_api_token,
|
29 |
together_api_key,
|
30 |
openrouter_api_key,
|
31 |
+
anthropic_api_key,
|
32 |
+
fireworks_api_key,
|
33 |
+
mistral_api_key,
|
34 |
):
|
35 |
# Set environment variables
|
36 |
os.environ["GOOGLE_API_KEY"] = google_api_key
|
|
|
38 |
os.environ["HUGGINGFACEHUB_API_TOKEN"] = huggingfacehub_api_token
|
39 |
os.environ["TOGETHER_API_KEY"] = together_api_key
|
40 |
os.environ["OPENROUTER_API_KEY"] = openrouter_api_key
|
41 |
+
os.environ["ANTHROPIC_API_KEY"] = anthropic_api_key
|
42 |
+
os.environ["FIREWORKS_API_KEY"] = fireworks_api_key
|
43 |
+
os.environ["MISTRAL_API_KEY"] = mistral_api_key
|
44 |
|
45 |
if file is None:
|
46 |
return "Please upload a file to parse."
|
|
|
138 |
openrouter_api_key = gr.Textbox(
|
139 |
label="OpenRouter API Key", placeholder="Enter OpenRouter API Key"
|
140 |
)
|
141 |
+
anthropic_api_key = gr.Textbox(
|
142 |
+
label="Anthropic API Key", placeholder="Enter Anthropic API Key"
|
143 |
+
)
|
144 |
+
fireworks_api_key = gr.Textbox(
|
145 |
+
label="Fireworks API Key", placeholder="Enter Fireworks API Key"
|
146 |
+
)
|
147 |
+
mistral_api_key = gr.Textbox(
|
148 |
+
label="Mistral API Key", placeholder="Enter Mistral API Key"
|
149 |
+
)
|
150 |
|
151 |
output = gr.Markdown(label="Parsed Output")
|
152 |
|
|
|
173 |
huggingfacehub_api_token,
|
174 |
together_api_key,
|
175 |
openrouter_api_key,
|
176 |
+
anthropic_api_key,
|
177 |
+
fireworks_api_key,
|
178 |
+
mistral_api_key,
|
179 |
],
|
180 |
outputs=output,
|
181 |
)
|
requirements.txt
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
lexoid==0.1.
|
2 |
matplotlib==3.10.1
|
3 |
plotly==6.2.0
|
|
|
1 |
+
lexoid==0.1.16.post1
|
2 |
matplotlib==3.10.1
|
3 |
plotly==6.2.0
|