Skip to content

Conversation

@sgangapurkar
Copy link

No description provided.

@@ -0,0 +1,157 @@

# https://7b7qhlx1yh.execute-api.us-east-1.amazonaws.com/Predict/cf09696a-e6f6-482a-ac75-fd1ad61772a4
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove this

import PySimpleGUI as sg


# Sample format of data expected
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove this

# "Insulin":0,"BMI":33.6,"DiabetesPedigreeFunction":0.627,"Age":50}

def mystr(inp_val, inp_feature):
tmp_val = inp_val
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check for type to be str and add quotes around it.

Also name the function to be wrap_string_in_quotes

predictions (list): Contains the list of predictions
"""
values_age = values['Age']
#print(values_age)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove the print

[sg.Text('Area Income'), sg.Input(61833.9, key='Area Income')],
[sg.Text('Daily Internet Usage'), sg.Input(256.09, key='Daily Internet Usage')],
[sg.Text('Ad Topic Line'), sg.Input('Cloned 5thgeneration orchestration', key='Ad Topic Line')],
# [sg.Text('Ad Topic Line'), sg.Input('', key='Ad Topic Line')],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this line.

if event is None or event == 'Exit':
break

print("from GUI:", values)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this print value

if(feature == 'Age'):
body = body + '"' + feature + '"' + ':' + str(values_split[a]) + ','
else:
#body = body + '"' + feature + '"' + ':' + str(values[feature]) + ','
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this line.

}

public static void main(String[] args) {
AdClicksProject1 clicks = new DiabetesProject1(0, 0, 400, 400);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change DiabeteProject1 to AdClicksProject1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants