sniro23 commited on
Commit
4addc11
·
1 Parent(s): f0dba11

Remove conflicting .space directory to fix API endpoint configuration

Browse files
Files changed (2) hide show
  1. .space/space.yaml +0 -23
  2. frontend/src/lib/api.ts +2 -2
.space/space.yaml DELETED
@@ -1,23 +0,0 @@
1
- title: VedaMD - Medical Assistant
2
- emoji: 🏥
3
- colorFrom: blue
4
- colorTo: green
5
- sdk: gradio
6
- pinned: false
7
- fullWidth: true
8
- build:
9
- clearCache: true
10
- forceRebuild: true
11
- python_version: 3.10
12
- app_file: app.py
13
- models:
14
- - sentence-transformers/all-MiniLM-L6-v2
15
- - cross-encoder/ms-marco-MiniLM-L-6-v2
16
- storage:
17
- - path: src/processed_markdown
18
- mount: true
19
- target: /home/user/app/src/processed_markdown
20
- - path: vector_store
21
- mount: true
22
- target: /home/user/app/vector_store
23
- persistent: true
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
frontend/src/lib/api.ts CHANGED
@@ -29,7 +29,7 @@ export async function queryAPI(input: string, history: ChatMessage[] = []): Prom
29
  }
30
 
31
  // Use the specific Gradio API endpoint as per the documentation
32
- const response = await fetch(`${HF_API_URL}/chat`, {
33
  method: 'POST',
34
  headers: {
35
  'Content-Type': 'application/json',
@@ -38,7 +38,7 @@ export async function queryAPI(input: string, history: ChatMessage[] = []): Prom
38
  data: [
39
  input,
40
  gradioHistory
41
- ]
42
  }),
43
  });
44
 
 
29
  }
30
 
31
  // Use the specific Gradio API endpoint as per the documentation
32
+ const response = await fetch(`${HF_API_URL}/run/chat`, {
33
  method: 'POST',
34
  headers: {
35
  'Content-Type': 'application/json',
 
38
  data: [
39
  input,
40
  gradioHistory
41
+ ],
42
  }),
43
  });
44