Vitrous commited on
Commit
096a16c
·
verified ·
1 Parent(s): 8d515a0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -7,7 +7,12 @@ from transformers import (AutoModelForCausalLM, AutoTokenizer, LlamaForCausalLM,
7
  from fastapi.middleware.cors import CORSMiddleware
8
 
9
  app = FastAPI(title="Deploying FastAPI Apps on Huggingface")
10
-
 
 
 
 
 
11
  app.add_middleware(
12
  CORSMiddleware,
13
  allow_origins=origins,
 
7
  from fastapi.middleware.cors import CORSMiddleware
8
 
9
  app = FastAPI(title="Deploying FastAPI Apps on Huggingface")
10
+ origins = [
11
+ "https://articko-artickbot.hf.space",
12
+ "https://articko-artickbot.hf.space/",
13
+ "https://articko-artickbot.hf.space/api/start_conversation",
14
+ "https://articko-artickbot.hf.space/api/get_response/",
15
+ ]
16
  app.add_middleware(
17
  CORSMiddleware,
18
  allow_origins=origins,